python program to find factorial of a number using while loop